package com.genexususa.eo.bing.test.add;

import com.genexususa.eo.bing.connection.AccountManager;
import com.genexususa.eo.bing.test.TestUtil;

public class ConsumeCreateAccount {

    public static void main(String[] args) {
        TestUtil testUtil = new TestUtil();

        AccountManager am = new AccountManager();
        String accountsXML = "<Bing_AccountCollection>\n" +
                "\t<SignupCustomer>\n" +
                "\t\t<Account>\n" +
                "\t\t\t<BillToCustomerId>1</BillToCustomerId>\n" +
                "\t\t\t<CountryCode>US</CountryCode>\n" +
                "\t\t\t<CurrencyType>USDollar</CurrencyType>\n" +
                "\t\t\t<AccountFinancialStatus>Proposed</AccountFinancialStatus>\n" +
                "\t\t\t<Id></Id>\n" +
                "\t\t\t<Language>English</Language>\n" +
                "\t\t\t<Name>Test Name Account</Name>\n" +
                "\t\t\t<Number>X012345</Number>\n" +
                "\t\t\t<ParentCustomerId>2</ParentCustomerId>\n" +
                "\t\t\t<PaymentMethodId>2</PaymentMethodId>\n" +
                "\t\t\t<PaymentMethodType>CreditCard</PaymentMethodType>\n" +
                "\t\t\t<AccountLifeCycleStatus>Active</AccountLifeCycleStatus>\n" +
                "\t\t\t<TimeZone>CentralAmerica</TimeZone>\n" +
                "\t\t</Account>\n" +
                "\t\t<Customer>\n" +
                "\t\t\t<CustomerAddress>\n" +
                "\t\t\t\t<City>Chicago, IL</City>\n" +
                "\t\t\t\t<CountryCode>US</CountryCode>\n" +
                "\t\t\t\t<Line1>1143 W Rundell PL</Line1>\n" +
                "\t\t\t\t<Line2>Suite 300</Line2>\n" +
                "\t\t\t\t<Line3></Line3>\n" +
                "\t\t\t\t<Line4></Line4>\n" +
                "\t\t\t\t<PostalCode>60607</PostalCode>\n" +
                "\t\t\t\t<StateOrProvince>IL</StateOrProvince>\n" +
                "\t\t\t</CustomerAddress>\n" +
                "\t\t\t<CustomerFinancialStatus>ClearFinancialStatus</CustomerFinancialStatus>\n" +
                "\t\t\t<Industry>Technology</Industry>\n" +
                "\t\t\t<MarketCountry>US</MarketCountry>\n" +
                "\t\t\t<MarketLanguage>English</MarketLanguage>\n" +
                "\t\t\t<Name>Test Customer</Name>\n" +
                "\t\t\t<ServiceLevel>SelfServe</ServiceLevel>\n" +
                "\t\t\t<CustomerLifeCycleStatus>Active</CustomerLifeCycleStatus>\n" +
                "\t\t\t<Number>X03456</Number>\n" +
                "\t\t</Customer>\n" +
                "\t\t<GxAccountId>123123</GxAccountId>\n" +
                "\t</SignupCustomer>\n" +
                "</Bing_AccountCollection>";
        //am.addAccounts(testUtil.accountId1, accountsXML);
        String result = am.createAccount(/*testUtil.accountId3, */accountsXML);

        System.out.println(result);

    }
}
